<div ng-controller="FaretempCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li><a href="#/faretemp/list">{{'freight'| translate}}{{'List'| translate}}</a></li>
        <li class="active">
            {{"List"|translate}}
            <a href="#/faretemp/add" id="addNew" class="sui-btn btn-primary">+{{'add_new' | translate}}</a>
        </li>
        <span class="sui-form sui-form pull-right"> 
          <input type="text"  placeholder="{{'productid'|translate}}"  ng-model="fare_id">
     <!--      <input type="text"  placeholder="{{'Name'|translate}}"  ng-model="name"> -->
          <button class="sui-btn btn-primary" type="submit" ng-click="faretempGet()">{{'search'|translate}}</button>
        </span>
    </ul>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'Name'|translate}}</th>
                <th>{{'shop_address'|translate}}</th>
                <th>{{'dispatch_time'|translate}}</th>
                <th>{{'remark'|translate}}{{'price'|translate}}</th>
                <th>{{'operation'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="list in faretemplates">
                <td>{{list.name}}</td>
                <td>{{list.shop_addr}}
                </td>
                <td>{{list.dispatch_time}}</td>
                <!-- <td>{{list.volume}} -->
                </td>
                <td>
                	{{list.remark}}
                </td>
             
                <td>
                    <a href="#/faretemp/add?fare_id={{list.fare_id}}" class="sui-btn btn-success">{{'edit'|translate}}</a>
                    <a href="#/faretemp/info?fare_id={{list.fare_id}}" class="sui-btn btn-primary">{{'info'|translate}}</a>
                    <a ng-click="faretemplateDelete(list.fare_id)" class="sui-btn btn-danger">{{'delete'|translate}}</a>
                </td>
            </tr>
        </tbody>
    </table>
    <!-- 分页start -->
    <pager page-no="1" page-size="pageSize" total="productsTotal" get-data="getProductList(pageNo)"></pager>
    <!-- 分页end -->
</div>
